<include file="Core:Public:header" /> {:W('Navigation')}
<link rel="stylesheet" type="text/css" media="all" href="__PLUGIN__/daterangepicker/daterangepicker-bs3.css" />
<script type="text/javascript" src="__PLUGIN__/daterangepicker/moment.js"></script>
<script type="text/javascript" src="__PLUGIN__/daterangepicker/daterangepicker.js"></script>
<div class="body-right">
	<div class="row-table">
		<div class="row-table-title">
			</span>团队工资公式列表
		</div>
		<div class="row-table-body">

			<div class="panel panel-default">
				<div class="panel-heading">

				</div>
				<div class="panel-body">
					<table class="table table-hover table-striped les">
						<thead>
							<tr>
								<th>团队名称</th>
								<th>工资结算公式(元)</th>
								<th>最后操作人</th>
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							<volist name="team" id="vo">
								<tr>
									<td>{$vo.name}</td>
									<td>
										<if condition="$vo.formula neq NULL">
											上班天数×{$vo.formula.work} + 正常单量×{$vo.formula.normal} + 超时单量×{$vo.formula.outtime} - 欺诈单量×{$vo.formula.qizha}
										<else />
										未设置
										</if>
										
									</td>
									<td>
										<if condition="$vo.edit_user neq NULL">
										{$vo.edit_user}
										<else/>
										未操作
										</if>
									</td>
									<td><a class="edit" href="javascript:;" tid="{$vo.id}">编辑</a></td>
								</tr>
							</volist>
						</tbody>
					</table>

				</div>
			</div>
			<div class="col-md-12">{$page}</div>

		</div>
	</div>
</div>
<div class="clear"></div>
<script type="text/javascript">

	$('.edit').click(function(){
		var tid=$(this).attr('tid');
		$('#alert').modal({
			show:true,
			remote:'{:U("chrm/delivery/setwage")}&tid='+tid
		});
	});
</script>
<include file="Core:Public:alert" />
<include file="Core:Public:footer" />